package com.xzit.xzitexprement2.Service.Impl;

import com.xzit.xzitexprement2.Mapper.gradesMapper;
import com.xzit.xzitexprement2.Pojo.grades;
import com.xzit.xzitexprement2.Service.gradesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class gradesServiceImpl implements gradesService {
    @Autowired
    private gradesMapper gradesmapper;
    @Override
    public List<grades> listAll() {
        return gradesmapper.listAll();
    }

    @Override
    public List<grades> getByCourseId(Integer cid) {
        return gradesmapper.getByCourseId(cid);
    }

    @Override
    public void update(grades grades) {
        gradesmapper.update(grades);
    }

    @Override
    public List<grades> getByRange(Integer minscore, Integer maxscore) {
        return gradesmapper.getByRange(minscore,maxscore);
    }
}
